<admintpl file="header" />
</head>
<style>

</style>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class=""><a href="{:U('index')}">配置列表</a></li>
			<li class="active"><a href="javascript:;">编辑配置</a></li>
		</ul>
		<form action="{:U('edit')}" method="post" class="form-horizontal edit-form" enctype="multipart/form-data">
			<input type="hidden" name='key' value = "{$_GET[key]}" />
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">
						<tr>
							<th>{$_GET[name]}</th>
							<td>{$_GET[key]}</td>
						</tr>
						<tr>
							<th>多久拉取一次</th>
							<td>
								<input type="text"  name="post[wait_time]"  value="{$info.wait_time}" placeholder=""/>
								<span class="form-required">*单位是秒</span>
							</td>
						</tr>
						<tr>
							<th>上一次拉取的自增长id数</th>
							<td>
								<input type="text"  name="post[last_id]" value="{$info.last_id}"  />
							</td>
						</tr>
						<tr>
							<th>每次拉取的记录数</th>
							<td>
								<input type="text"  name="post[limit]" value="{$info.limit}"    />
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="form-actions">
				<button class="btn btn-primary ajax-post" target-form='form-horizontal' type="submit">提交</button>
				<a href="{:U('index')}" class="btn" >返回</a>
			</div>
		</form>
	</div>

	<script type="text/javascript" src="__PUBLIC__/js/content_addtop.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
	<script>
		
	
	 validateForm({
	      rule:{
	  		'post[wait_time]' : {required : 1},
	  		'post[last_id]' : {required : 1},
	  		'post[limit]' : {required : 1},
	  		},
	      message:{
		'post[wait_time]' : {required : '请设置拉取间隔时间'},
		'post[last_id]' : {required : '最后一次拉取的id不能为空'},
		'post[limit]' : {required : '请设置拉取记录数'},
		}
	 },"{:U('index')}")
	 
	    
	 </script>
</body>
</html>